<?php
# Alert the user that this is not a valid entry point to MediaWiki if they try to access the special pages file directly.
if (!defined('MEDIAWIKI')) {
        echo <<<EOT
To install my extension, put the following line in LocalSettings.php:
require_once( "\$IP/extensions/FormAsTemplate/FormAsTemplate.php" );
EOT;
        exit( 1 );
}

$wgExtensionCredits['specialpage'][] = array(
	'name' => 'FormAsTemplate',
	'author' => 'Carlos de Alfonso',
	'url' => 'http://www.mediawiki.org/wiki/Extension:FormAsTemplate',
	'description' => 'Pagina que crea un formulario para crear un nuevo articulo. El contenido del articulo es una plantilla con los campos del formulario',
	'version' => '0.4.9',
);

require_once("TemplateAsForm_body.php");

/**
// $wgAutoloadClasses['TestTemplate'] = $dir . 'NuevoArticulo_body.php'; # Tell MediaWiki to load the extension body.
$wgSpecialPages['TemplateForNews'] = 'TemplateForNews'; # Let MediaWiki know about your new special page.
*/
?>
